# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>

pkgname=python-rfc6555
pkgver=0.1.0
pkgrel=2
arch=('any')
url="https://pypi.org/project/rfc6555/"
license=('Apache')
pkgdesc="Python implementation of the Happy Eyeballs Algorithm described in RFC 6555."
depends=('python')
makedepends=('python-setuptools')
#checkdepends=('python-tox')
source=("https://pypi.io/packages/source/r/rfc6555/rfc6555-$pkgver.tar.gz")
sha256sums=('123905b8f68e2bec0c15f321998a262b27e2eaadea29a28bd270021ada411b67')

build() {
  cd rfc6555-${pkgver}
  python setup.py build
}

# failing for now
# check() {
#   cd "${srcdir}/rfc6555-${pkgver}"
#   tox
# }

package() {
  cd rfc6555-${pkgver}
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
